package com.yingsheng.bi.hks.web.controller;

import com.yingsheng.bi.hks.dto.mine.*;
import com.yingsheng.bi.hks.feign.client.MineFeignClient;
import com.yingsheng.bi.hks.service.mine.MineMgmtService;
import com.yingsheng.bi.hks.template.annotation.Template;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RestController;

/**
 * 商户信息维护
 */
@RestController
public class MineCtrl implements MineFeignClient {

    @Autowired
    private MineMgmtService mineMgmtService;

    @Template(name = "accessTransTemplate")
    @Override
    public InvoicesAddRes invoicesAdd(InvoicesAddReq req) {
        return mineMgmtService.invoicesAdd(req);
    }

    @Template(name = "accessQueryTemplate")
    @Override
    public InvoicesPersonQryRes invoicesQryByUser(InvoicesPersonQryReq req) {
        return mineMgmtService.invoicesPersonQry(req);
    }

    @Template(name = "accessTransTemplate")
    @Override
    public InterviewAuntQryRes interviewAuntQry(@Validated InterviewAuntQryReq req) {
        return mineMgmtService.interviewAuntQry(req);
    }


    @Template(name = "accessTransTemplate")
    @Override
    public PartnerAddRes partnerAdd(@Validated PartnerAddReq req) {
        return mineMgmtService.partnerAdd(req);
    }

    @Template(name = "accessQueryTemplate")
    @Override
    public MyResumeQryRes myResumeQry(MyResumeQryReq req) {
        return mineMgmtService.myResumeQry(req);
    }


}
